/**
 * 
 */
package com.automation.monkeytalk;

import com.gorillalogic.monkeytalk.java.api.Application;

/**
 * @author yha03
 * 
 */
public interface MonkeyTalk {

  public void enter(String objectName, String value, Application app);

  public void enterInPopUp(String objectName, String value, Application app);

  public void clear(String objectName, Application app);

  public void click(String objectName, String objectType, Application app);

  public void click(String objectName, String objectType, Application app, int noOfRetry);

  public void check(String objectName, String value, Application app);

  public void select(String objectName, String value, Application app);

  public void selectByText(String objectName, String value, Application app);

  public String getValue(String objectName, String objectType, String property, Application app);

  public String getValue(String objectName, String objectType, Application app);

  public String getJSValue(String objectName, String ObjectType, String retValueType,
      Application app);

  public String getJSValueByIndex(String objectName, String ObjectType, String retValueType,
      int index, Application app);

  public String runJS(String jsToExecute, Application app);

  public void waitTillViewLoads(String viewName, int timeoutInSecs, Application app)
      throws Exception;

  public void waitTillViewAppears(String viewName, int timeoutInSecs, Application app)
      throws Exception;

  public boolean isElementExists(String elementType, String elementName, Application app)
      throws Exception;

}
